package com.dayi.view;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.dayi.R;
import com.lib.fastkit.views.recyclerview.zhanghongyang.base.ViewHolder;
import com.lib.ui.adapter.BaseAdapter;

import java.util.List;

public class SpinnerListAdapter extends BaseAdapter<String> {

    private List<String> dateArr;

    public SpinnerListAdapter(Context context, List<String> mData) {
        super(context, mData);
        this.dateArr = mData;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_spinner_layout;
    }

    @Override
    protected void toBindViewHolder(ViewHolder holder, int position, List<String> mData) {
        TextView textView = holder.getView(R.id.tv_grade);
        textView.setText(mData.get(position));


        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }


}
